package cn.admin.config.common.protocol;


public final class ProtocolPackage extends ProtocolPacket {
    private static final long serialVersionUID = 1L;

    public ProtocolPackage() {
        this(VersionElement.CURRENT);
    }

    public ProtocolPackage(VersionElement version) {
        this.addElement(version);
    }

    public VersionElement version() {
        return (VersionElement)this.getElement(VersionElement.CURRENT.uid());
    }

    @Override
    public void addElement(ProtocolElement element) {
        super.addElement(element);
    }

    @Override
    public boolean setElement(ProtocolElement element) {
        return super.setElement(element);
    }

    @Override
    public void reset() {
        super.reset();
    }

    @Override
    public ProtocolElementUid uid() {
        return ProtocolElementUid.PACKAGE;
    }

}
